package com.dazhi.boot.context.event;

import com.dazhi.boot.ConfigurableBootstrapContext;
import com.dazhi.boot.SpringApplication;
import org.springframework.core.env.ConfigurableEnvironment;

public class ApplicationEnvironmentPreparedEvent extends SpringApplicationEvent{
    private final ConfigurableBootstrapContext bootstrapContext;
    private final ConfigurableEnvironment environment;
    public ApplicationEnvironmentPreparedEvent(ConfigurableBootstrapContext bootstrapContext
            , SpringApplication application, String[] args, ConfigurableEnvironment environment) {
        super(application, args);
        this.bootstrapContext = bootstrapContext;
        this.environment = environment;
    }

    public ConfigurableBootstrapContext getBootstrapContext() {
        return this.bootstrapContext;
    }

    public ConfigurableEnvironment getEnvironment() {
        return this.environment;
    }
}
